package com.projectplace.api;

/*
 * Copyright (c) 2011 Projectplace International AB
 * Permission is hereby granted, free of charge, to any person 
 * obtaining a copy of this software and associated documentation 
 * files (the "Software"), to deal in the Software without restriction, 
 * including without limitation the rights to use, copy, modify, merge, 
 * publish, distribute, sublicense, and/or sell copies of the Software, 
 * and to permit persons to whom the Software is furnished to do so, 
 * subject to the following conditions:The above copyright notice and this 
 * permission notice shall be included in all copies or substantial portions of the Software.
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */


public interface Api {
	
	final static String PROJECTPLACE_BASIC_API = "https://api.projectplace.com/1/";
	/* For usage after 1 july 2011
	 * private final static String PROJECTPLACE_FUTURE_API ="https://api.projectplace.com/1/"; */
	
	/*
	 * Error code's
	 */
	public final static String NO_ERROR = "200";
	public final static String BAD_TOKEN_ERROR = "401";
	public final static String SERVER_ERROR ="500";
	
	
	//https://service.projectplace.com/v1/avatar/534975035/8156d83451ce2fc10a12c1ae7aed71b7
	
	//public final static String PROJECTPLACE_USER_PROFILE ="/user/";
	/*
	 * User information & Profiles
	 */
	public final static String PROJECTPLACE_USER_COWORKERS =PROJECTPLACE_BASIC_API +"user/me/coworkers.json";
	public final static String PROJECTPLACE_USER_PROJECTS =PROJECTPLACE_BASIC_API +"user/me/projects.json"; /* Future could use favorite projects */
	public final static String PROJECTPLACE_USER_RECENTDOCUMENTS =PROJECTPLACE_BASIC_API +"user/me/recent-documents.json";
	public final static String PROJECTPLACE_USER_AVARTAR ="https://service.projectplace.com/api/v1/" +"avatar/"; //PROJECTPLACE_BASIC_API +"avatar/"; /*ex. USER_ID/ACCESS_TOKEN */
	public final static String PROJECTPLACE_USER_Assignments =PROJECTPLACE_BASIC_API +"user/me/assignments.json";
	
	/*
	 * Documents 
	 */
	public final static String PROJECTPLACE_DOCUMENT_COMMENTS=PROJECTPLACE_BASIC_API+"document/";
	public final static String PROJECTPLACE_DOCUMENT_CONTAINERCONTENTS = PROJECTPLACE_BASIC_API+"document-container/";
	public final static String PROJECTPLACE_DOCUMENT_DOWNLOAD=PROJECTPLACE_BASIC_API+"document/";
	public final static String PROJECTPLACE_DOCUMENT_PROPERTIES_GET=PROJECTPLACE_BASIC_API+"";
	public final static String PROJECTPLACE_DOCUMENT_PROPERTIES_SET=PROJECTPLACE_BASIC_API+"";
	public final static String PROJECTPLACE_DOCUMENT_UPLOAD_NEWFILE=PROJECTPLACE_BASIC_API+"";
	public final static String PROJECTPLACE_DOCUMENT_UPLOAD_EXISTINGFILE=PROJECTPLACE_BASIC_API+"";
	public final static String PROJECTPLACE_DOCUMENT_VERSION=PROJECTPLACE_BASIC_API+"";
	public final static String PROJECTPLACE_DOCUMENT_TOUCH=PROJECTPLACE_BASIC_API+"";
	public final static String PROJECTPLACE_DOCUMENTS_USERRECENT=PROJECTPLACE_BASIC_API+"user/me/recent-documents.json";
	
	/*
	 *  ProjectApi (Most of these api:s are implemented under other categories)
	 */
	public final static String PROJECTPLACE_PROJECT_TOOLS = PROJECTPLACE_BASIC_API +"project/";
	
	
}

